import {kanlist} from "@/api/kandianapi.js"
export let mkandian ={
    state:{
        obj:[]
    },
    getters:{},
    mutations:{
        uplist(state,payload){
            state.obj=payload
        }
    },
    actions:{
        listact(context){
            kanlist().then((ok)=>{
                console.log(ok)
                context.commit("uplist",ok)
            }).catch((err)=>{
                console.log(err)
            })
        }
    },

}